<?php
    include("class/Conexion.php");

    global $conexion;
    $sql= "select * from categoria";
    //echo $sql;
    $query = mysql_query($sql,$conexion);

    if(mysql_num_rows($query) != 0){
        while($row = mysql_fetch_array($query)){
            echo '<a class="" href="#" onClick="showarticulos('.$row['id'].',1)">'.$row['nombre'].'</a><br />';
        }
    }

?>
